/*
 * Jonathan Marokhovsky
 * WPI
 * Version: November 29, 2011
 * 
 * Nutella Listener Process and constants
 */

#include "msock.h"
#include <sys/wait.h>
#include <fcntl.h>

#define Q_ADDR		"239.141.188.1"
#define Q_PORT		23000
#define R_ADDR		"239.141.188.2"
#define R_PORT		23001
#define MAX_SEARCH	80
#define MAX_RESP	120
#define DELIM		"|"
#define IP_LEN		16
#define MAX_FRAME	100000


int debug; // This is a debug flag

/*
 * The listener listens on the Query port for movie requests and then streams
 * the movies which it has to one user
 */
int listener(void);
